﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL_Class
{
    public class LienHephanhoi
    {
        NLLDataContext db = new NLLDataContext();
        public string AddNewFeedBack(FeedBack fb) 
        {
            string result = string.Empty;
            try
            {
                db.FeedBacks.InsertOnSubmit(fb);
                db.SubmitChanges();
                
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return result = "Cảm ơn bạn đã phản hồi với chúng tôi";
        }
        public void DeleteFeedBack(int id) 
        {
            try
            {
                var a = db.sp_FeedBack_Delete(id);
            }catch(Exception ex)
            {
                throw ex;
            }
        }
    }
}
